package ltd.dujiabao.orderservice.rpc;

import jakarta.validation.Valid;
import ltd.dujiabao.common.dto.DeductStockDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Bowie Du
 * @date 2025/7/22 20:18
 */
@FeignClient(name = "inventory-service")
public interface InventoryApi {
    @PostMapping("/deductStock")
    void deductStock(@RequestBody @Valid DeductStockDto dto);
}
